﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Library.Services.Authentication.Types.Containers;

namespace Gota.Common.Entities.UI
{
    [Serializable]
    public class OperationEntity
    {
        public OperationEntity()
        {

        }

        public OperationEntity(OperationsContainer container)
        {
            ID = container.OperationsEntity.OperationId;
            OperationName = String.Format("{0} {1}", container.OperationsEntity.Definitions.DefinitionDescription, container.OperationsEntity.Events.EventDescription);
        }

        public int ID { get; set; }
        public string OperationName { get; set; }
    }
}
